<!DOCTYPE html>

<?php
	//Start session
	session_start();	
	//Unset the variables stored in session
	unset($_SESSION['SESS_FIRST_NAME']);
	unset($_SESSION['SESS_LAST_NAME']);
?>
<html>
    <link type="text/css" rel="stylesheet" href="giftgiving.css"/>
    <!-- Uncomment the line below to include javascript in your webpage -->
    <!--<script type="text/javascript" src="giftgiving.js"/>-->
    <style type="text/css">
<!--
.STYLE1 {
	font-size: 18px;
	font-weight: bold;
}
.STYLE2 {font-size: 16px}
-->
    </style>
    <head>
        <title>Flora Home</title>
    </head>
    <body>
        <div id="gift-view-id">
            <!-------- Side Bars -------------------------------------------------------------------------->
            <div id="gift-navpane-id" class="gift-navpane">
    			<div id="gift-pets-id" class="gift-types">
                    <a href="cus_home.php" class="STYLE1">Customer Home</a>				</div>
                <div id="gift-pets-id" class="gift-types gift-types">
                    <a href="admin_home.php" class="STYLE1">Admin Home</a>		    </div>
                     
                    <div id="gift-register-id" class="gift-types">
                    <a href="admin_reg.php" class="STYLE1">Admin Register</a>    			</div>
                <div id="gift-register-id" class="gift-types">
                    <a href="admin_Profile.php" class="STYLE1">Admin Profile</a> 	    </div>
				
				<div id="gift-register-id" class="gift-types">
				    <a href="admin_order.php" class="STYLE1">Order Info</a>             </div>
				<div id="gift-register-id" class="gift-types">
				    <a href="admin_customer.php" class="STYLE1">Customer Info</a>             </div>
				<div id="gift-register-id" class="gift-types">
				    <a href="Admin_flower.php" class="STYLE1">Flower Info</a>             </div>
					<div id="gift-register-id" class="gift-types">
				    <a href="FlowersInput.php" class="STYLE1">Add Flower</a>             </div>
                    
				<?php   
				    if (!isset($_SESSION['SESS_FIRST_NAME']) || (trim($_SESSION['SESS_FIRST_NAME']) == '')){
						echo '<div id="gift-register-id" class="gift-types   gift-types-selected">
   							  <a href="admin_login.php" class="STYLE1">Login</a>    </div>';
					}else{
						echo '<div id="gift-register-id" class="gift-types  gift-types-selected">
							  <a href="admin_login.php" class="STYLE1">Logout</a>     </div>';
					}
				?>
    		</div>
    		<div id="gift-choosepane-id" class="gift-choosepane">
               <!-- Note the onClick handler for this element -->
               <div id="gift-table" onClick="onGiftClick()">
        	   
			   
			<table width="309" border="0" align="center" cellpadding="2" cellspacing="5">
				<form name="loginform" action="admin_login_exec.php" method="post">
				<th colspan="2"><span class="STYLE2">Please login ^_^</span></th>
				<tr>
				<td colspan="2">
				<!--the code bellow is used to display the message of the input validation-->
				<?php
					if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
						echo '<ul class="err">';
					foreach($_SESSION['ERRMSG_ARR'] as $msg) {
						echo '<li>',$msg,'</li>'; 
					}
					echo '</ul>';
					unset($_SESSION['ERRMSG_ARR']);
				}
				?>
				</td>
				</tr>
				<tr>
					<td>name: <input type="text" name='name' /></td>
				</tr>
				<tr>
					<td>password: <input type="password" name='password' /></td>
				</tr>
			<tr>
			
			<td><input name="" type="submit" value="login" /></td>
			</tr>
			</table>
			</form>
			
            </div>
            	<div class="footer-container">
            <div class="left">
                <p>Any questions? Let us help you.  Call us: <strong>+65 9861 5555</strong>   &copy; Copyright Flowers Singapore</p>
            </div>
        </div>
                <!---<img id="Bruno" src="http://www.999365.com/Shop/UploadPhotos/200805/200851205925714.jpg"/>--->
    		</div>
        </div>
	</body>
</html>
